package com.fanix5.javamvvm.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

import lombok.Data;

/**
 * FileName: Disease
 * Author: Admin
 * Date: 2020/11/16 11:46
 * Description: Disease
 */
@Data
public class DoctorBean implements Parcelable {
    @SerializedName(value = "id")
    private int id;
    @SerializedName(value = "name")
    private String name;
    @SerializedName(value = "pwd")
    private String pwd;
    @SerializedName(value = "hospital")
    private String hospital;
    @SerializedName(value = "depart")
    private String depart;
    @SerializedName(value = "goodat")
    private String expert;
    @SerializedName(value = "age")
    private String age;
    @SerializedName(value = "sex")
    private String sex;
    @SerializedName(value = "rank")
    private String rank;
    @SerializedName(value = "tel")
    private String phone;
    @SerializedName(value = "headimg")
    private String headImg;
    @SerializedName(value = "is_visible")
    private int isVisible;
    @SerializedName(value = "hospital_rank")
    private String hospitalRank;
    @SerializedName(value = "ill_lib_id")
    private String diseaseId;
    @SerializedName(value = "video")
    private String video;
    @SerializedName(value = "video_img")
    private String videoImg;
    @SerializedName(value = "desc")
    private String desc;
    @SerializedName(value = "dp_id")
    private int dpId;
    @SerializedName(value = "flag")
    private int flag;
    @SerializedName(value = "dp_name")
    private String dpName;
    @SerializedName(value = "cust_id")
    private int custId;
    @SerializedName(value = "cure1_num")
    private int cure1Num;
    @SerializedName(value = "cure2_num")
    private int cure2Num;
    @SerializedName(value = "cure3_num")
    private int cure3Num;
    @SerializedName(value = "cure4_num")
    private int cure4Num;
    @SerializedName(value = "registration_fee")
    private String registrationFee;
    @SerializedName(value = "follow")
    private int follow;


    protected DoctorBean(Parcel in) {
        id = in.readInt();
        name = in.readString();
        pwd = in.readString();
        hospital = in.readString();
        depart = in.readString();
        expert = in.readString();
        age = in.readString();
        sex = in.readString();
        rank = in.readString();
        phone = in.readString();
        headImg = in.readString();
        isVisible = in.readInt();
        hospitalRank = in.readString();
        diseaseId = in.readString();
        video = in.readString();
        videoImg = in.readString();
        desc = in.readString();
        dpId = in.readInt();
        follow = in.readInt();
        flag = in.readInt();
        dpName = in.readString();
        custId = in.readInt();
        cure1Num = in.readInt();
        cure2Num = in.readInt();
        cure3Num = in.readInt();
        cure4Num = in.readInt();
        registrationFee = in.readString();
    }

    public static final Creator<DoctorBean> CREATOR = new Creator<DoctorBean>() {
        @Override
        public DoctorBean createFromParcel(Parcel in) {
            return new DoctorBean(in);
        }

        @Override
        public DoctorBean[] newArray(int size) {
            return new DoctorBean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(follow);
        dest.writeString(name);
        dest.writeString(pwd);
        dest.writeString(hospital);
        dest.writeString(depart);
        dest.writeString(expert);
        dest.writeString(age);
        dest.writeString(sex);
        dest.writeString(rank);
        dest.writeString(phone);
        dest.writeString(headImg);
        dest.writeInt(isVisible);
        dest.writeString(hospitalRank);
        dest.writeString(diseaseId);
        dest.writeString(video);
        dest.writeString(videoImg);
        dest.writeString(desc);
        dest.writeInt(dpId);
        dest.writeInt(flag);
        dest.writeString(dpName);
        dest.writeInt(custId);
        dest.writeInt(cure1Num);
        dest.writeInt(cure2Num);
        dest.writeInt(cure3Num);
        dest.writeInt(cure4Num);
        dest.writeString(registrationFee);
    }
}
